#
import unittest
from irlab.basics.radar import Radar

class TRadar(unittest.TestCase):
    def test_power_aperture1(self):
        '''
        python -m unittest uts.irlab.basics.t_radar.TRadar.test_power_aperture1 -v
        '''
        # PAP = Radar.power_aperture(snr=10, tsc=1e-3, sigma=1e-5, range=10000, te=290, nf=3, loss=6, az_angle=45, el_angle=30)
        PAP = Radar.power_aperture(20, 2, 3.162, 75e3, 290, 8, 6, 180, 135)
        print(f'PAP={PAP};')
        assert(PAP > 36.6 and PAP < 36.8)